package com.shuyihui.identity

import com.owbtgad.common.network.BaseResp
import io.reactivex.Observable
import okhttp3.MultipartBody
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part
import retrofit2.http.Url

/**
 * 创建日期 2021/6/8
 * 描述：
 */
interface IdentityService {

    @POST("/api/android/userAuthCommon/getAuthConfig/v1")
    suspend fun getAuthConfig(): BaseResp<String>


    @Multipart
    @POST("/api/android/authCommon/upload/v1")
    suspend fun upload(
        @Part parts: List<MultipartBody.Part>
    ):  Observable<ResponseBody>

    @Multipart
    @POST
    suspend fun upload(@Url url: String?, @Part parts: List<MultipartBody.Part>): Call<String>
}